// 专门对接电影后端接口
import axiosInstance from "../axiosInstance";
const movieInfo = {
    //获取最受欢迎的电影
    getPraiseMovie(){
        return axiosInstance.get("/movie-info/getPraiseMovie")
    },
    getListByPage({pageIndex,tags,movie_name}){
        return axiosInstance.get("/movie-info/getListByPage",{
            params:{
                pageIndex,
                tags,
                movie_name
            }
        })
    },
    findById(id){
        return axiosInstance.get("/movie-info/findById/"+id)
    },
    search({pageIndex,keyword}){
        return axiosInstance.get("/movie-info/search/",{
        params:{
            pageIndex,
            keyword
        }
    })
    }
}
export default movieInfo;